package com.icim.entity;

import com.icim.twyd.importer.xmlentity.TwydBoxXmlEntity;

public class Ret_cus_box {

  private String boxid;
  private String cellsize;
  private String itemno;
  private String model_no;
  private String module_site;
  private String cellsite;
  private String pallet_no;
  private String boxno;
  private String arraypartno;
  private String product_qty;
  private String evt_timestamp;


    /**
   * @return the boxid
   */
  public String getBoxid() {
    return boxid;
  }


  /**
   * @param boxid the boxid to set
   */
  public void setBoxid(String boxid) {
    this.boxid = boxid;
  }


  /**
   * @return the cellsize
   */
  public String getCellsize() {
    return cellsize;
  }


  /**
   * @param cellsize the cellsize to set
   */
  public void setCellsize(String cellsize) {
    this.cellsize = cellsize;
  }


  /**
   * @return the itemno
   */
  public String getItemno() {
    return itemno;
  }


  /**
   * @param itemno the itemno to set
   */
  public void setItemno(String itemno) {
    this.itemno = itemno;
  }


  /**
   * @return the model_no
   */
  public String getModel_no() {
    return model_no;
  }


  /**
   * @param model_no the model_no to set
   */
  public void setModel_no(String model_no) {
    this.model_no = model_no;
  }


  /**
   * @return the module_site
   */
  public String getModule_site() {
    return module_site;
  }


  /**
   * @param module_site the module_site to set
   */
  public void setModule_site(String module_site) {
    this.module_site = module_site;
  }


  /**
   * @return the cellsite
   */
  public String getCellsite() {
    return cellsite;
  }


  /**
   * @param cellsite the cellsite to set
   */
  public void setCellsite(String cellsite) {
    this.cellsite = cellsite;
  }


  /**
   * @return the pallet_no
   */
  public String getPallet_no() {
    return pallet_no;
  }


  /**
   * @param pallet_no the pallet_no to set
   */
  public void setPallet_no(String pallet_no) {
    this.pallet_no = pallet_no;
  }


  /**
   * @return the boxno
   */
  public String getBoxno() {
    return boxno;
  }


  /**
   * @param boxno the boxno to set
   */
  public void setBoxno(String boxno) {
    this.boxno = boxno;
  }


  /**
   * @return the arraypartno
   */
  public String getArraypartno() {
    return arraypartno;
  }


  /**
   * @param arraypartno the arraypartno to set
   */
  public void setArraypartno(String arraypartno) {
    this.arraypartno = arraypartno;
  }




  /**
   * @return the product_qty
   */
  public String getProduct_qty() {
    return product_qty;
  }


  /**
   * @param product_qty the product_qty to set
   */
  public void setProduct_qty(String product_qty) {
    this.product_qty = product_qty;
  }


  /**
   * @return the evt_timestamp
   */
  public String getEvt_timestamp() {
    return evt_timestamp;
  }


  /**
   * @param evt_timestamp the evt_timestamp to set
   */
  public void setEvt_timestamp(String evt_timestamp) {
    this.evt_timestamp = evt_timestamp;
  }


  public boolean TwydXml2Entity(TwydBoxXmlEntity xmlEntity) {
    this.boxid = xmlEntity.getBOXID();
    this.cellsize = xmlEntity.getCELLSIZE();
    this.itemno = xmlEntity.getITEMNO();
    this.model_no = xmlEntity.getMODEL_NO();
    this.module_site = xmlEntity.getMODULE_SITE();
    this.cellsite = xmlEntity.getCELLSITE();
    this.pallet_no = xmlEntity.getPALLET_NO();
    this.boxno = xmlEntity.getBOXNO();
    this.arraypartno = xmlEntity.getARRAYPARTNO();
    this.product_qty = xmlEntity.getCELL().size()+"";
    return true;
  }
}
